﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cool.Application.System.RoleService.Dtos
{
    public class RoleInputDto
    {
        public int Id { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [Required, MaxLength(32)]
        public string RoleName { get; set; }

        /// <summary>
        /// 角色权限字符串
        /// </summary>
        public string RoleKey { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderNum { get; set; }

        /// <summary>
        /// 数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）
        /// </summary>
        public char DataScope { get; set; }

        /// <summary>
        /// 角色状态
        /// </summary>
        public char Status { get; set; }

        public List<int> menuIds { get; set; }

        public List<int> deptIds { get; set; }
    }
}
